const {ccclass, property} = cc._decorator;

@ccclass
export default class Helloworld extends cc.Component {

    @property(cc.Button)
    button: cc.Button = null;    

    start () {                
        this.button.node.on('click', this.OnStart, this);
    }

    OnStart(event) {
        cc.director.loadScene('Level01');
    }
}
